/*
 * Copyright 2015-2019 Evun Technology. 
 * 
 * This software is the confidential and proprietary information of
 * Evun Technology. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with evun.cn.
 */
package cn.evun.sweet.demo.model;

import javax.persistence.Table;

import org.apache.ibatis.type.Alias;

import cn.evun.sweet.base.model.TenantBase;

/**
 * 租户信息表对应的实体
 *
 * @author yangw
 * @since 1.0.0
 */
@Table(schema="T", name="sweet_demo_tenant")
@Alias("tenant")
public class TenantDo extends TenantBase {

	/*静态字段自动排除，不予表字段映射*/
	private static final long serialVersionUID = 1L;
	
	/*实体对象会自动排除，不予映射。类似树结构的自关联由于别名冲突，无法使用关联查询功能*/
	private TenantDo parentTenant;
	
	private String tenantPhone;
	private String tenantAddress;
		
	public TenantDo getParentTenant() {
		return parentTenant;
	}
	public void setParentTenant(TenantDo parentTenant) {
		this.parentTenant = parentTenant;
	}
	public String getTenantPhone() {
		return tenantPhone;
	}
	public void setTenantPhone(String tenantPhone) {
		this.tenantPhone = tenantPhone;
	}
	public String getTenantAddress() {
		return tenantAddress;
	}
	public void setTenantAddress(String tenantAddress) {
		this.tenantAddress = tenantAddress;
	}

}
